package com.bestcem.xm.user.controller.vo.group;

import com.bestcem.xm.user.service.dto.group.GroupLevelDTO;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 更新层级
 *
 * @author Linzhijian <zhijian.lin@idiaoyan.com>
 * @version v1.0
 * @date 2022/04/02 14:52
 */
@Data
public class UpdateGroupLevelVO {

    /**
     * 公司id
     */
    private String orgId;

    /**
     * 组织层级
     */
    @NotEmpty(message = "层级数据缺失")
    @JsonProperty("level_data")
    @Valid
    private List<GroupLevelDTO> levelData;

}
